#ifndef PRIVATEDIALOG_H
#define PRIVATEDIALOG_H

#include <QDialog>
#include <QTcpSocket>

namespace Ui {
class PrivateDialog;
}

class PrivateDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PrivateDialog(QWidget *parent = 0,QString myName="adam",QString target="lili");
    ~PrivateDialog();
    void recv(QString);
    void setClient(QTcpSocket *client);

private slots:
    void on_Send_clicked();

    void on_clean_clicked();


private:
    Ui::PrivateDialog *ui;
    QString myname;
    QString target;
    QTcpSocket *client;
};

#endif // PRIVATEDIALOG_H
